class_name AIBehaviorFactory

var roles : Dictionary

func _init() -> void:
	roles = {
		Player.Role.GOALIE :AIBehaviorGoalie,
		Player.Role.DEFENSE:AIBehaviorField,
		Player.Role.MODIFIELD: AIBehaviorField,
		Player.Role.OFFSENSE : AIBehaviorField
	}

func get_ai_behavior(role: Player.Role) -> AIBehavior:
	assert(roles.has(role) ,"role don't exists")
	return roles.get(role).new()
